﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text;

namespace CoreModule
{

    public class BluetoothInformationEqualityComparer : IEqualityComparer<BluetoothInformation>
    {
        public bool Equals([AllowNull] BluetoothInformation x, [AllowNull] BluetoothInformation y)
        {
            return x.DeviceAddress == y.DeviceAddress;
        }

        public int GetHashCode([DisallowNull] BluetoothInformation obj)
        {
            return obj.DeviceAddress.GetHashCode();
        }
    }
}
